package com.example.design.bilibili.mediator;

public class TV extends Colleague{


    public TV(Mediator mediator, String name) {
        super(mediator, name);
        mediator.Register(name,this);
    }

    @Override
    public void sendMessage(int stateChange) {

        this.getMediator().GetMessage(stateChange,this.name);
    }

    public void startTV(){
        System.out.println("startTV");
    }

    public void stopTV(){
        System.out.println("stopTV");
    }
}
